package xian.woniuxy.h_static.a;

class Person {
    private int id;
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}

public class App {
    public static void main(String[] args) {
        Person p = new Person();
        Person p2 = new Person();

        p.setId(1);
        p.setName("andy");

        p2.setId(2);
        p2.setName("eason");

        System.out.println(p);
        System.out.println(p2);

    }
}
